package com.smallrig.mall.template.event;

import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class AEventListener implements ApplicationListener<TestEvent> {

    @Override
//    @Async
    public void onApplicationEvent(TestEvent event) {
        System.out.println(Thread.currentThread().getName()+" "+event);
        //逻辑处理
    }


}
